<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
    <link
      rel="stylesheet"
      href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/4.5.2/css/bootstrap.min.css"
    />
    <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
  </head>
  <body>
    <input type="text" name="" id="" />
    <input type="password" name="" id="" />
    <button class="btn-primary" onclick="send()">send</button>
    <script>
      function send() {
        $.ajax({
          type: "get",
          url: "/getStuData",
          success(res) {
            $("body").append("\<br/>" + JSON.stringify(res));
          },
          failure(err) {
            console.log(err);
          },
        });
      }
    </script>
  </body>
</html>
